

#include "wxsAuiToolBarSpacer.h"

#include <wx/aui/auibar.h>

#include <wxwidgets/wxsflags.h>

using namespace wxsFlags;

namespace
{
    #include "../images/wxsAuiToolBarSpacer16.xpm"
    #include "../images/wxsAuiToolBarSpacer32.xpm"

    wxsRegisterItem<wxsAuiToolBarSpacer> Reg(
        _T("wxAuiToolBarSpacer"),           
        wxsTWidget,                            
        _T("wxWindows"),                       
        _T("Benjamin I. Williams"),            
        _T(""),                                
        _T(""),                                
        _T("Aui"),                             
        1,                                    
        _T("AuiToolBarSpacer"),                                
        wxsCPP,                                
        2, 8,                                  
        wxBitmap(wxsAuiToolBarSpacer32_xpm),   
        wxBitmap(wxsAuiToolBarSpacer16_xpm),   
        false);
}

wxsAuiToolBarSpacer::wxsAuiToolBarSpacer(wxsItemResData* Data)
    : wxsAuiToolBarItemBase(Data,&Reg.Info,flId,0,0),
    m_Stretch(false),
    m_Pixels(0),
    m_Proportion(1) {}

void wxsAuiToolBarSpacer::OnEnumItemProperties(long Flags) {
    WXS_BOOL(wxsAuiToolBarSpacer,m_Stretch,_("Is strecht spacer"),_T("stretch"),false)
    WXS_LONG(wxsAuiToolBarSpacer,m_Pixels,_("Pixels"),_T("pixels"),0)
    WXS_LONG(wxsAuiToolBarSpacer,m_Proportion,_("Proportion"),_T("proportion"),1)
}
